<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>编辑信息</title>
    <link rel="stylesheet" href="../css/page-health-orderInfo.css"/>
    <link rel="stylesheet" href="../plugins/elementui/index.css"/>
    <script src="../plugins/jquery/dist/jquery.min.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="../plugins/datapicker/datePicker.js"></script>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/elementui/index.js"></script>
    <script>
        var id = getUrlParam("id");//根据URL地址栏中的参数名称获取对应的值
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app" style="background-color: #f3f2f7;">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="">
        <div class="top"
             style="padding-top:20px;padding-left:20px;padding-bottom:20px;display: flex;flex-direction: column;background-color: #fff;">
            <div class="title">{{this.dataList.setmealName}}</div>
            <div class="type" style="font-size: 14px;color:#999">{{this.dataList.remark}}</div>
            <div class="price" style="color:#FF6347">套餐价格：{{this.dataList.price}}</div>
            <div class="tags" style="margin-top:5px;display: flex;flex-direction: row;">
                <div class=""
                     style="text-align: center; border: 1px solid #FF6347;color:#FF6347;border-radius: 7px;line-height: 25px; height: 25px;width: 80px;margin-right: 15px;">


                    {{this.dataList.sex == '0' ? '性别不限' : this.dataList.sex == '1' ? '男':'女'}}
                </div>
                <div class=""
                     style="text-align: center;border: 1px solid #FF6347;color:#FF6347;border-radius: 7px;line-height: 25px;height: 25px;width: 60px;">
                    {{this.dataList.age}}
                </div>
            </div>
        </div>
        <div style="display: flex;flex-direction: row;padding-left:20px;line-height:50px;height: 50px;margin:10px 0 5px 0;background-color: #fff;">
            <div class="pic">
                <img src="../img/widget-nav-2.png" alt=""
                     style="margin-right:5px;margin-top:10px;height: 32px;width: 32px;">
            </div>
            <div>预约人：{{this.dataList.orderName}}</div>
        </div>
        <div style="display: flex;flex-direction: row;padding-left:20px;line-height:50px;height: 50px;margin:10px 0 5px 0;background-color: #fff;">
            <div class="pic">
                <img src="../img/widget-nav-4.png" alt=""
                     style="margin-right:5px;margin-top:10px;height: 32px;width: 32px;">
            </div>
            <div>预约方式：{{this.dataList.orderType}}</div>
        </div>
        <div style="display: flex;flex-direction: row;padding-left:20px;line-height:50px;height: 50px;margin:10px 0 5px 0;background-color: #fff;">
            <div class="pic">
                <img src="../img/widget-nav-4.png" alt=""
                     style="margin-right:5px;margin-top:10px;height: 32px;width: 32px;">
            </div>
            <div>预约时间：{{this.dataList.orderDate.substring(0,10)}}</div>
        </div>
        <div style="display: flex;flex-direction: row;padding-left:20px;line-height:50px;height: 50px;margin:10px 0 5px 0;background-color: #fff;">
            <div class="pic">
                <img src="../img/widget-nav-4.png" alt=""
                     style="margin-right:5px;margin-top:10px;height: 32px;width: 32px;">
            </div>
            <div>到诊情况：{{this.dataList.orderStatus}}</div>
        </div>
        <div style="display: flex;flex-direction: row;padding-left:20px;line-height:50px;height: 50px;margin:10px 0 5px 0;background-color: #fff;">
            <div class="pic">
                <img src="../img/widget-nav-4.png" alt=""
                     style="margin-right:5px;margin-top:10px;height: 32px;width: 32px;">
            </div>
            <div>预约体检机构地址：{{this.dataList.address}}</div>
        </div>
        <a href="setmeal.html">
            <div style="margin-top:20px;color: red;text-align: center;background-color: #fff;height: 50px;line-height: 50px;">
                点击查看所有套餐
            </div>
        </a>
    </div>
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {

            dataList: {},
        },

        //订单明细
        mounted() {
            axios.post("/member/findDetail.do?orderId="+id).then(res => {
                if (res.data.flag) {
                    this.dataList = res.data.data;
                }else {
                    this.$message.error(res.data.message);
                }
            })
        }

    });


</script>
<script>
    export default {
        data() {
            return {
                pickerOptions: {
                    disabledDate(time) {
                        return time.getTime() > Date.now();
                    },
                },
                value1: '',
            };
        }
    };
</script>
</body>
</html>